#include <iostream>
#include <cmath>

int n, a1, a2, a3, b1, b2, b3;

int main()
{
	std::cin >> a1 >> a2 >> a3;
	std::cin >> b1 >> b2 >> b3;
	std::cin >> n;
	int a = std::ceil((a1 + a2 + a3) / 5.0) + 0.5;
	int b = std::ceil((b1 + b2 + b3) / 10.0) + 0.5;
	if (a + b > n) std::cout << "NO\n";
	else std::cout << "YES\n";
}

